import( "MPI" );
import( "io", true );

Me = MPI.Rank();
Threads = MPI.Size();

//for(i=0; i<5;i++)
//{
		//sarr[i]="Hello " + (i*10);
//}

if ( Me != 0 )
{

	print("Start recieving");
	Hello = MPI.TRecv();
	print( "Recieved Successfully " + Me );
	print(Hello)


}
else
{
	for ( i=1; i<Threads; i++ )
	{
    sarr = 5;
		print("Start sending");
		MPI.TSend( sarr, i, Me );
		print("Sent successfully to " + i );
	}
}
